import http from '@/utils/request'

export function saveInfo(data) {
  return http.request({
    url: '/quarantineInfo/saveInfo',
    method: 'post',
    data
  })
}
export function pageInfoList(data) {
  return http.request({
    url: '/quarantineInfo/pageInfoList',
    method: 'post',
    data
  })
}

export function quarantineDetail(params) {
  return http.request({
    url: '/quarantineInfo/quarantineDetail',
    method: 'post',
    params
  })
}

export function updateInfo(data) {
  return http.request({
    url: '/quarantineInfo/updateInfo',
    method: 'post',
    data
  })
}
export function deleteInfo(params) {
  return http.request({
    url: '/quarantineInfo/deleteInfo',
    method: 'post',
    params
  })
}
export function getCreateId(params) {
  return http.request({
    url: '/quarantineInfo/getInfoByAuthCode',
    method: 'post',
    params
  })
}

export function queryClick(data) {
  return http.request({
    url: '/quarantineRecord/queryClick',
    method: 'post',
    data
  })
}
export function list(params) {
  return http.request({
    url: '/sysDictData/list',
    method: 'get',
    params
  })
}
export function updateQuarantineStatus(data) {
  return http.request({
    url: '/quarantineInfo/updateQuarantineStatus',
    method: 'post',
    data
  })
}

export function clickClock(data) {
  return http.request({
    url: '/quarantineRecord/click',
    method: 'post',
    data
  })
}
export function pageReportInfo(params) {
  return http.request({
    url: '/quarantineInfo/pageReportInfo',
    method: 'post',
    params
  })
}

// 所属辖区隔离总人数
export function countIsolate(params) {
  return http.request({
    url: '/screen/countIsolate',
    method: 'get',
    params
  })
}

// 所属辖区隔离人员始发地统计
export function countSituationByFromArea(params) {
  return http.request({
    url: '/screen/countSituationByFromArea',
    method: 'get',
    params
  })
}
// 所属辖区隔离类型统计
export function countSituationByType(params) {
  return http.request({
    url: '/screen/countSituationByType',
    method: 'get',
    params
  })
}
// 所属辖区新增统计情况
export function countSituationNewAdd(params) {
  return http.request({
    url: '/screen/countSituationNewAdd',
    method: 'get',
    params
  })
}
// 所属辖区解除隔离统计情况
export function queryQuarantineDetail(params) {
  return http.request({
    url: '/screen/queryQuarantineDetail',
    method: 'get',
    params
  })
}
